//
//  RMNoteHeaderView.m
//  RMNote
//
//  Created by lxf on 16/4/20.
//  Copyright © 2016年 lxf. All rights reserved.
//

#import "RMNoteHeaderView.h"
#import "RMBaseModel.h"
//
//typedef struct  month{
//    NSString *aa;
//    
//}Month;

//typedef NS_ENUM(NSInteger, Month) {
//    yissdfd = 1,
//
//};

@interface RMNoteHeaderView ()

@property (nonatomic, strong) NSArray *arr;

@end

@implementation RMNoteHeaderView


//- (void)setModel:(RMBaseModel *)model{
//    _model = model;
//    NSString *year = model.createDate.year;
//    NSString *month = model.createDate.month;
//
//}


- (void)setMonth:(NSString *)month{
    _month = month;
   self.monthLabel.text = self.arr[month.integerValue - 1];
}

- (NSArray *)arr{
    if (!_arr) {
        _arr = [NSArray arrayWithObjects:@"壹",@"贰",@"叁",@"肆",@"伍",@"陆",@"柒",@"捌",@"镹",@"拾",@"拾壹",@"拾贰", nil];
    }
    return _arr;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
